#include "head.h"

void sendInfoStruct(int net_fd, user_info *info) {
    int length = sizeof(user_info);

    ssize_t ret1 = send(net_fd, &length, sizeof(int), MSG_NOSIGNAL);
    ERROR_CHECK(ret1, -1, "send in sendInfoStruct no.1");
    ssize_t ret2 = send(net_fd, info, length, MSG_NOSIGNAL);
    ERROR_CHECK(ret2, -1, "send in sendInfoStruct no.2");
    return;
}

